import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class BufferedCharReader {
    public static void main(String[] args) {
        try {
            FileReader reader = new FileReader("char_file.txt");
            BufferedReader bufferedReader = new BufferedReader(reader);

            String line = null;
            // readLine 读取内容，但是不包含行的结束符
            while ((line = bufferedReader.readLine()) != null){
                System.out.println(line);
            }
            bufferedReader.close();
            reader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
